<?php
/**
* Ability to search for practitioner data
* @author Nick Korbel <lqqkout13@users.sourceforge.net>
* @version 04-14-06
* @package phpScheduleIt
*
* Copyright (C) 2003 - 2007 phpScheduleIt & 2010 ITOxygen
* License: GPL, see LICENSE
*/

require_once('db/PractitionerDB.class.php');

class Practitioner
{
	var $data = null;
	var $id = null;
	var $name = null;
	
	
	function Practitioner($data = null, $id = null) {
		$this->data = $data;
		
		if (!empty($id)) {
			$this->id = $id;		
			$row = $this->data->getPractitioner($id);
			
			$this->name = $row['practitioner'];
			
		}
	}
	

	function getPractitioners() {
					return $this->data->getPractitioners();
 	}
}
?>
